<template>
  <div class="">
    这里是登录
    <a-button type="primary" @click="clickFun">登录</a-button>
  </div>
</template>

<script>
import { formatDateTime } from '@/filters/index';
export default {
  name: 'login',
  props: {},
  components: {
    // components: resolve => {
    //   require([''], resolve)
    // }
  },
  data() {
    return {};
  },
  created() {
    this.initDataFun(); // 初始化数据
  },
  mounted() {},
  beforeDestroy() {},
  watch: {},
  computed: {},
  methods: {
    // 初始化数据
    initDataFun() {},
    clickFun() {
      this.$store.commit('user/SET_MENU', []);
      let dates = new Date();
      this.$store.commit('user/ADD_USERINFO', { name: formatDateTime(dates) });
      // this.$_http
      //   .get(this.$_API.INTERFACE_GET_USER_ADMIN_USERS)
      //   .then((res) => {
      //     // 自己的操作
      //     console.log(res);
      //   })
      //   .catch((err) => {
      //     console.log(err);
      //   });
      this.$router.push({ name: 'home' });
    },
  },
};
</script>

<style lang="less"></style>

<style lang="less" scoped></style>
